package com.example.news.service;

import com.example.news.pojo.entity.Category;
import com.example.news.pojo.form.BasePageQuery;
import com.example.news.pojo.form.CategoryForm;
import com.example.news.pojo.vo.CategoryVo;
import com.example.news.utils.result.PageResult;
import com.example.news.utils.result.Result;
import org.springframework.stereotype.Service;

@Service
public interface CategoryService {
    Result<String>createCategory(CategoryForm request);
    Result<String>deleteCategory(Integer id);
    Result<String>modifyCategory(CategoryForm request);
    PageResult<CategoryVo>getAllCategory(BasePageQuery basePageQuery);

    PageResult<Category> userGetAllCategory(BasePageQuery basePageQuery);

}
